package com.zp.qualitypractice.rx.event;

import java.util.Random;

/**
 * Created by izp on 2017/9/4.
 */

public class EventA {
    private String from;
    private int id;

    public EventA(Object from) {
        this.from = from.getClass().getSimpleName();
        this.id = new Random().nextInt(100);
    }


    public String getMsg() {
        return getClass().getSimpleName()+" from "+from +",EventId "+ id ;
    }
}
